#include "bitOperation.h"

uint8_t bitSum(uint32_t value)
{
    uint8_t sum = 0;
    while(value)
    {
        if (value & 0x01)
        {
            sum++;
        }
        value = value >> 1;
    }

    return sum;
}